<layout name='layout' />

<div class="admin-main">

	<blockquote class="layui-elem-quote">
		<button class="layui-btn layui-btn-small layui-btn-danger" id="delBtn">
			<i class="fa fa-close"></i> 删除
		</button>

		<div class="search">
			<form class="layui-form" method="post" action="<{:U('Member/index')}>">
			<div class="layui-input-inline">
			<input type="text" name="mobile" placeholder="手机号码" class="layui-input layui-btn-small">
			</div>

			<div class="layui-input-inline">
			<input type="text" name="company" placeholder="公司名称" class="layui-input layui-btn-small">
			</div>
			
			<button type="submit" class="layui-btn" lay-submit=""><i class="layui-icon">&#xe615;</i> 搜索</button>

			<a href="<{:U('Member/index')}>" class="layui-btn layui-btn-primary">重置</a>
			</form>
		</div>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>会员列表</legend>
		<div class="layui-field-box">
			<form id="ajaxForm" method="post" action="<{:U('Member/del')}>">
			<table class="site-table table-hover">
				<thead>
					<tr>
						<th><input type="checkbox" id="selected-all"></th>								
						<th>会员姓名</th>
						<th>会员帐号</th>
						<th>金币</th>
						<th>公司名称</th>
						<th>办公电话</th>
						<th>法人代表</th>
						<th>状态</th>
						<th>注册日期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr>
						<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>"></td>
						<td><{$vo.name}></td>
						<td><{$vo.mobile}></td>
						<td><{$vo.money.money}>金币</td>
						<td><{$vo.company}></td>
						<td><{$vo.tel}></td>
						<td><{$vo.faren}></td>
						<td><if condition="$vo.disable eq 0">正常<else /><font color="#FF0000">禁用</font></if></td>
						<td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
						<td>
							<a href="<{:U('Member/edit' , array('id'=>$vo['id']))}>" class="layui-btn layui-btn-mini">修改密码</a>
							<a href="<{:U('Member/go' , array('id'=>$vo['id']))}>" target="_blank" class="layui-btn layui-btn-mini">会员中心</a>
							<a href="javascript:void(0)" onclick="openModel('<{:U('Yewu/add' , array('memberID'=>$vo['id']))}>','添加业务','80%','80%');" class="layui-btn layui-btn-mini">新增业务</a>
							<a href="javascript:void(0)" onclick="openModel('<{:U('Member/pay' , array('id'=>$vo['id']))}>','添加业务','80%','80%');" class="layui-btn layui-btn-danger layui-btn-mini">扣款</a>
						</td>
					</tr>
					</volist>				
				</tbody>
			</table>
			</form>
		</div>
	</fieldset>
</div>